from django.conf.urls import url
from app02.views import *

urlpatterns = [
    url(r'^index/', index),
    url(r'^hostlist/', hostlist),
    url(r'^userlist/', UserListView.as_view()),
    # 函数视图路由
    # url(r'^login/', login, name="login"),
    # 类视图路由
    url(r'^login/',LoginView.as_view(),name='login'),
    url(r'^tpl/',MyTemplateView.as_view()),
]
